package com.sz.virtualbank.web.vo.finance;

import java.math.BigDecimal;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 购买理财产品请求对象
 *
 * @author Claude
 */
@Data
@ApiModel("购买理财产品请求")
public class PurchaseProductReqVO {

    @ApiModelProperty(value = "产品ID", required = true)
    @NotNull(message = "产品ID不能为空")
    private Long productId;

    @ApiModelProperty(value = "投资金额", required = true)
    @NotNull(message = "投资金额不能为空")
    @DecimalMin(value = "0.01", message = "投资金额必须大于0")
    private BigDecimal amount;

    @ApiModelProperty(value = "支付密码", required = true)
    @NotBlank(message = "支付密码不能为空")
    private String paymentPassword;
}
